package com.yh.correct.dao;

import java.util.List;
import java.util.Map;

import com.yh.correct.model.SysLog;

/**
 * 系统日志dao层接口
 * @author Administrator
 *
 */
public interface ISysLogMapper {
	/**
	 * 获取系统日志
	 * @param log
	 * @return
	 * @throws Exception
	 */
	SysLog getSysLog(SysLog log) throws Exception;
	/**
	 * 插入系统日志
	 * @param log
	 * @return
	 * @throws Exception
	 */
	int insertSysLog(SysLog log) throws Exception;
	/**
	 * 删除系统日志(主键)
	 * @param log
	 * @return
	 * @throws Exception
	 */
	int deleteSysLog(SysLog log) throws Exception;
	/**
	 * 通过用户名删除系统日志
	 * @param userid
	 * @return
	 * @throws Exception
	 */
	int deleteSysLogByUserId(String username) throws Exception;
	/**
	 * 动态条件查询系统日志分页
	 * @param condition
	 * @return
	 * @throws Exception
	 */
	List<Object> findListByCondition(Map<String,Object> condition) throws Exception;
	/**
	 * 查找全部系统日志
	 * @return
	 * @throws Exception
	 */
	List<Map<String,Object>> findListAll() throws Exception;
}
